import { formatPermission } from '@/router/format'

export const storeServiceServiceOrderRoutes = {
  path: '/merchant/operation/service-order',
  name: 'storeOperationServiceOrder',
  component: () => import(/* webpackChunkName: "operation-service-order" */ '@/views/operation/service-order/index'),
  meta: {
    title: '服务预约',
    icon: 'svg-service-order'
  },
  redirect: '/merchant/operation/service-order/list',
  permission: ['/merchant/operation/service-order/list'],
  children: [
    {
      path: '/merchant/operation/service-order/list',
      name: 'storeOperationServiceOrderList',
      component: () => import(/* webpackChunkName: "operation-service-order" */ '@/views/operation/service-order/list'),
      meta: {
        title: '服务预约',
        icon: 'svg-service-order'
      },
    },
    {
      path: '/merchant/operation/service-order/detail',
      name: 'storeOperationServiceOrderDetail',
      component: () => import(/* webpackChunkName: "operation-service-order" */ '@/views/operation/service-order/detail'),
      hidden: true,
      meta: {
        title: '服务预约明细',
        activeMenu: '/merchant/operation/service-order/list'
      },
    }
  ],
}
